package com.cq.digitalemployee.user.dao;

import com.cq.digitalemployee.user.entity.po.SysRole;

import java.util.List;
import java.util.Set;

public interface SysRoleDao {
    int deleteByPrimaryKey(String id);

    int insert(SysRole record);

    int insertSelective(SysRole record);

    SysRole selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);

    Set<SysRole> findByUser(String userId);

    List<SysRole> findAll();

    int grantByUser(String roleId, String userId);
}